package com.settlement.system.service.impl;

import com.settlement.system.mapper.TblWpCumulativeIosSummaryMapper;
import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.TblWpCumulativeIosSummary;
import com.settlement.system.service.ITblWpCumulativeIosSummaryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import com.settlement.system.mapper.BaseMapper;
import jakarta.annotation.Resource;
import java.util.Map;

/**
 * AP_544累计收发存汇总表 服务实现类
 * @author Ximi
 * @since 2020-10-19
 */
@Slf4j
@Service
public class TblWpCumulativeIosSummaryServiceImpl extends BaseServiceImpl implements ITblWpCumulativeIosSummaryService {

    @Resource
    private TblWpCumulativeIosSummaryMapper tblWpCumulativeIosSummaryMapper;

    @Override
    public BaseMapper init() {
        return tblWpCumulativeIosSummaryMapper;
    }

    @Override
    public TblWpCumulativeIosSummary getFoot(Map<String, Object> params) throws ServiceException {
        try {
            return tblWpCumulativeIosSummaryMapper.getFoot(params);
        } catch (Exception ex) {
            log.error("获取合计异常", ex);
            throw new ServiceException("获取合计异常", ex);
        }
    }

}

